package meihua.stopcarapp.ui;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import butterknife.Bind;
import butterknife.OnClick;
import meihua.mylibrary.base.BaseActivity;
import meihua.stopcarapp.R;

/**
 * Created by DZB on 2017/5/10.
 * 分享车位成功
 */
public class SharedParkSuccessActivity extends BaseActivity {

    @Bind(R.id.toolbar_center)
    TextView mTitleName;
    @Bind(R.id.tv_share_park)
    TextView mTvSharePark;
    @Bind(R.id.btn_go_main)
    Button mBtnGoMain;

    @Override
    public int getLayoutId() {
        return R.layout.activity_shared_park_success;
    }

    @Override
    public void initPresenter() {

    }

    @Override
    public void initView(Bundle savedInstanceState) {
        mTitleName.setText( "分享成功" );
    }


    @OnClick({R.id.toolbar_left, R.id.btn_go_main})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.toolbar_left:
                finish();
                break;
            case R.id.btn_go_main:
                startActivity( MainActivity.class );
                finish();
                break;
        }
    }
}
